package com.zhiche.lisa.lspm.dao.model.lsp;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 承运商份额
 * </p>
 *
 * @author qichao
 * @since 2018-06-27
 */
@TableName("lisa_lsp_share")
public class LspShare extends Model<LspShare> {

    private static final long serialVersionUID = 1L;

	private Integer id;
    /**
     * 线路ID
     */
	@TableField("route_id")
	private Integer routeId;
	@TableField("entity_id")
	private Integer entityId;
    /**
     * 生效日期
     */
	@TableField("gmt_effective")
	private Date gmtEffective;
    /**
     * 有效期（月）
     */
	private Integer pov;
    /**
     * 份额（百分比）
     */
	@TableField("share_percent")
	private BigDecimal sharePercent;
    /**
     * 份额（台量）
     */
	@TableField("share_amt")
	private Integer shareAmt;
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Integer tenantId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getRouteId() {
		return routeId;
	}

	public void setRouteId(Integer routeId) {
		this.routeId = routeId;
	}

	public Integer getEntityId() {
		return entityId;
	}

	public void setEntityId(Integer entityId) {
		this.entityId = entityId;
	}

	public Date getGmtEffective() {
		return gmtEffective;
	}

	public void setGmtEffective(Date gmtEffective) {
		this.gmtEffective = gmtEffective;
	}

	public Integer getPov() {
		return pov;
	}

	public void setPov(Integer pov) {
		this.pov = pov;
	}

	public BigDecimal getSharePercent() {
		return sharePercent;
	}

	public void setSharePercent(BigDecimal sharePercent) {
		this.sharePercent = sharePercent;
	}

	public Integer getShareAmt() {
		return shareAmt;
	}

	public void setShareAmt(Integer shareAmt) {
		this.shareAmt = shareAmt;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Integer getTenantId() {
		return tenantId;
	}

	public void setTenantId(Integer tenantId) {
		this.tenantId = tenantId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "LspShare{" +
			", id=" + id +
			", routeId=" + routeId +
			", entityId=" + entityId +
			", gmtEffective=" + gmtEffective +
			", pov=" + pov +
			", sharePercent=" + sharePercent +
			", shareAmt=" + shareAmt +
			", gmtCreate=" + gmtCreate +
			", tenantId=" + tenantId +
			"}";
	}
}
